package com.ruoyi.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.TPermanentBlacklistPhoneMapper;
import com.ruoyi.platform.domain.TPermanentBlacklistPhone;
import com.ruoyi.platform.service.ITPermanentBlacklistPhoneService;

/**
 * 手机号永久黑名单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class TPermanentBlacklistPhoneServiceImpl implements ITPermanentBlacklistPhoneService 
{
    @Autowired
    private TPermanentBlacklistPhoneMapper tPermanentBlacklistPhoneMapper;

    /**
     * 查询手机号永久黑名单
     * 
     * @param permanentBlacklistPhoneId 手机号永久黑名单主键
     * @return 手机号永久黑名单
     */
    @Override
    public TPermanentBlacklistPhone selectTPermanentBlacklistPhoneByPermanentBlacklistPhoneId(Long permanentBlacklistPhoneId)
    {
        return tPermanentBlacklistPhoneMapper.selectTPermanentBlacklistPhoneByPermanentBlacklistPhoneId(permanentBlacklistPhoneId);
    }

    /**
     * 查询手机号永久黑名单列表
     * 
     * @param tPermanentBlacklistPhone 手机号永久黑名单
     * @return 手机号永久黑名单
     */
    @Override
    public List<TPermanentBlacklistPhone> selectTPermanentBlacklistPhoneList(TPermanentBlacklistPhone tPermanentBlacklistPhone)
    {
        return tPermanentBlacklistPhoneMapper.selectTPermanentBlacklistPhoneList(tPermanentBlacklistPhone);
    }

    /**
     * 新增手机号永久黑名单
     * 
     * @param tPermanentBlacklistPhone 手机号永久黑名单
     * @return 结果
     */
    @Override
    public int insertTPermanentBlacklistPhone(TPermanentBlacklistPhone tPermanentBlacklistPhone)
    {
        return tPermanentBlacklistPhoneMapper.insertTPermanentBlacklistPhone(tPermanentBlacklistPhone);
    }

    /**
     * 修改手机号永久黑名单
     * 
     * @param tPermanentBlacklistPhone 手机号永久黑名单
     * @return 结果
     */
    @Override
    public int updateTPermanentBlacklistPhone(TPermanentBlacklistPhone tPermanentBlacklistPhone)
    {
        return tPermanentBlacklistPhoneMapper.updateTPermanentBlacklistPhone(tPermanentBlacklistPhone);
    }

    /**
     * 批量删除手机号永久黑名单
     * 
     * @param permanentBlacklistPhoneIds 需要删除的手机号永久黑名单主键
     * @return 结果
     */
    @Override
    public int deleteTPermanentBlacklistPhoneByPermanentBlacklistPhoneIds(Long[] permanentBlacklistPhoneIds)
    {
        return tPermanentBlacklistPhoneMapper.deleteTPermanentBlacklistPhoneByPermanentBlacklistPhoneIds(permanentBlacklistPhoneIds);
    }

    /**
     * 删除手机号永久黑名单信息
     * 
     * @param permanentBlacklistPhoneId 手机号永久黑名单主键
     * @return 结果
     */
    @Override
    public int deleteTPermanentBlacklistPhoneByPermanentBlacklistPhoneId(Long permanentBlacklistPhoneId)
    {
        return tPermanentBlacklistPhoneMapper.deleteTPermanentBlacklistPhoneByPermanentBlacklistPhoneId(permanentBlacklistPhoneId);
    }
}
